package com.xunk.scene.domain;

import com.xunk.common.core.annotation.Excel;
import com.xunk.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * @ProjectName: HIM
 * @Package: com.xunk.scene.domain
 * @ClassName: SceneResultLog
 * @Author: luanzhiwei
 * @Description: 场景执行结果记录表实体类
 * @Date: 2021/5/6 9:56
 * @Version: 1.0
 */
@Data
public class SceneResultExec extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    private Long id;

    /**
     * 场景id
     */
    @Excel(name = "场景id")
    private Long sceneId;

    /**
     * 场景名称
     */
    private String sceneName;

    /**
     * 家庭id
     */
    private Long homeId;

    /**
     * 执行结果,执行中 EXECUTING, 执行成功 SUCCESS, 执行失败 FAIL
     */
    @Excel(name = "执行结果")
    private String result;

    /**
     * 失败原因
     */
    @Excel(name = "失败原因")
    private String failReason;

    /**
     * 触发条件id
     */
    @Excel(name = "触发条件id")
    private String triggerId;
}
